package org.third.common.domain;

import java.util.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "suite_upgrade_images")
public class SuiteUpgradeImages {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;

	@Column(name = "controller_type")
	private String controllerType;
	
	@Column(name = "controller_name")
	private String controllerName;
	
	@Column(name = "container_name")
	private String containerName;
	
	@Column(name = "to_imagename", nullable = false)
	private String toImageName;
	
	@Column(name = "to_imagetags")
	private String toImageTags;
	
	@Column(name = "from_imagename", nullable = false)
	private String fromImageName;
	
	@Column(name = "from_imagetags")
	private String fromImageTags;
	
	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	@ManyToOne
	@JoinColumn(name="transaction_id")
	private SuiteUpgrades suiteUpgrades;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getToImageName() {
		return toImageName;
	}

	public void setToImageName(String toImageName) {
		this.toImageName = toImageName;
	}

	public String getToImageTags() {
		return toImageTags;
	}

	public void setToImageTags(String toImageTags) {
		this.toImageTags = toImageTags;
	}

	public String getFromImageName() {
		return fromImageName;
	}

	public void setFromImageName(String fromImageName) {
		this.fromImageName = fromImageName;
	}

	public String getFromImageTags() {
		return fromImageTags;
	}

	public void setFromImageTags(String fromImageTags) {
		this.fromImageTags = fromImageTags;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public SuiteUpgrades getSuiteUpgrades() {
		return suiteUpgrades;
	}

	public void setSuiteUpgrades(SuiteUpgrades suiteUpgrades) {
		this.suiteUpgrades = suiteUpgrades;
	}

	public String getControllerType() {
		return controllerType;
	}

	public void setControllerType(String controllerType) {
		this.controllerType = controllerType;
	}

	public String getControllerName() {
		return controllerName;
	}

	public void setControllerName(String controllerName) {
		this.controllerName = controllerName;
	}

	public String getContainerName() {
		return containerName;
	}

	public void setContainerName(String containerName) {
		this.containerName = containerName;
	}

	

	

}
